package com.yinhd.study.customLog;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: study
 * @description:
 * @Author: chengl
 * @create: 2022-02-11 14:01
 **/
public class GduiTableDTO<T> extends BaseGduiDTO<T> {
    private Long total = 0L;
    private List<T> rows = new ArrayList();

    public GduiTableDTO() {
    }

    public Long getTotal() {
        return this.total;
    }

    public List<T> getRows() {
        return this.rows;
    }

    public GduiTableDTO<T> setTotal(Long total) {
        this.total = total;
        return this;
    }

    public GduiTableDTO<T> setRows(List<T> rows) {
        this.rows = rows;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof GduiTableDTO)) {
            return false;
        } else {
            GduiTableDTO<?> other = (GduiTableDTO) o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$total = this.getTotal();
                Object other$total = other.getTotal();
                if (this$total == null) {
                    if (other$total != null) {
                        return false;
                    }
                } else if (!this$total.equals(other$total)) {
                    return false;
                }

                Object this$rows = this.getRows();
                Object other$rows = other.getRows();
                if (this$rows == null) {
                    if (other$rows != null) {
                        return false;
                    }
                } else if (!this$rows.equals(other$rows)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof GduiTableDTO;
    }

    public String toString() {
        return "GduiTableDTO(super=" + super.toString() + ", total=" + this.getTotal() + ", rows=" + this.getRows() + ")";
    }
}
